package com.bing.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;

/**
 * Created by kai on 2014/4/13.
 */
public class HelloTag  extends SimpleTagSupport {

    private String name ;
    private String age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public void doTag() throws JspException, IOException {
        super.doTag();
        getJspContext().getOut().write("Hello name:"+name+" age:"+age);
    }
}
